﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200112D RID: 4397
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetAssistCsReq : IMessage<SetAssistCsReq>, IMessage, IEquatable<SetAssistCsReq>, IDeepCloneable<SetAssistCsReq>, IBufferMessage
	{
		// Token: 0x170037B3 RID: 14259
		// (get) Token: 0x0600C4CD RID: 50381 RVA: 0x00213FF0 File Offset: 0x002121F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetAssistCsReq> Parser
		{
			get
			{
				return SetAssistCsReq._parser;
			}
		}

		// Token: 0x170037B4 RID: 14260
		// (get) Token: 0x0600C4CE RID: 50382 RVA: 0x00213FF7 File Offset: 0x002121F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetAssistCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170037B5 RID: 14261
		// (get) Token: 0x0600C4CF RID: 50383 RVA: 0x00214009 File Offset: 0x00212209
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetAssistCsReq.Descriptor;
			}
		}

		// Token: 0x0600C4D0 RID: 50384 RVA: 0x00214010 File Offset: 0x00212210
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAssistCsReq()
		{
		}

		// Token: 0x0600C4D1 RID: 50385 RVA: 0x00214018 File Offset: 0x00212218
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAssistCsReq(SetAssistCsReq other) : this()
		{
			this.uid_ = other.uid_;
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C4D2 RID: 50386 RVA: 0x00214049 File Offset: 0x00212249
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAssistCsReq Clone()
		{
			return new SetAssistCsReq(this);
		}

		// Token: 0x170037B6 RID: 14262
		// (get) Token: 0x0600C4D3 RID: 50387 RVA: 0x00214051 File Offset: 0x00212251
		// (set) Token: 0x0600C4D4 RID: 50388 RVA: 0x00214059 File Offset: 0x00212259
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x170037B7 RID: 14263
		// (get) Token: 0x0600C4D5 RID: 50389 RVA: 0x00214062 File Offset: 0x00212262
		// (set) Token: 0x0600C4D6 RID: 50390 RVA: 0x0021406A File Offset: 0x0021226A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x0600C4D7 RID: 50391 RVA: 0x00214073 File Offset: 0x00212273
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetAssistCsReq);
		}

		// Token: 0x0600C4D8 RID: 50392 RVA: 0x00214081 File Offset: 0x00212281
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetAssistCsReq other)
		{
			return other != null && (other == this || (this.Uid == other.Uid && this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C4D9 RID: 50393 RVA: 0x002140C0 File Offset: 0x002122C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C4DA RID: 50394 RVA: 0x00214118 File Offset: 0x00212318
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C4DB RID: 50395 RVA: 0x00214120 File Offset: 0x00212320
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C4DC RID: 50396 RVA: 0x0021412C File Offset: 0x0021232C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Uid != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Uid);
			}
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C4DD RID: 50397 RVA: 0x00214188 File Offset: 0x00212388
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C4DE RID: 50398 RVA: 0x002141E0 File Offset: 0x002123E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetAssistCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C4DF RID: 50399 RVA: 0x00214230 File Offset: 0x00212430
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C4E0 RID: 50400 RVA: 0x0021423C File Offset: 0x0021243C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarId = input.ReadUInt32();
					}
				}
				else
				{
					this.Uid = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004F58 RID: 20312
		private static readonly MessageParser<SetAssistCsReq> _parser = new MessageParser<SetAssistCsReq>(() => new SetAssistCsReq());

		// Token: 0x04004F59 RID: 20313
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004F5A RID: 20314
		public const int UidFieldNumber = 10;

		// Token: 0x04004F5B RID: 20315
		private uint uid_;

		// Token: 0x04004F5C RID: 20316
		public const int AvatarIdFieldNumber = 14;

		// Token: 0x04004F5D RID: 20317
		private uint avatarId_;
	}
}
